﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Domain.Implementation
{
    public class CancelOfferService : ICancelOffers
    {
        public void Execute(IOffer offer)
        {
            if (offer == null)
                throw new ArgumentNullException("offer");

            ICancelOffers cancelOfferService = CancelOfferServiceFactory.GetCancelOfferService(offer);
            cancelOfferService.Execute(offer);
        }
    }
}
